package com.guotd.ticketSystemPlus.mapper;

import com.guotd.ticketSystemPlus.entity.Airport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AirportMapper {

     List<Airport> getAirports();

     List<Airport> getAirportsByPage(@Param("offset") int offset, @Param("pageSize") int pageSize);

     int getTotalCount();

     int addAirport(Airport airport);

     int delAirport(@Param("name") String name);

     int updateAirport(Airport airport);
}